package com.group4.banner.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.group4.banner.entity.Banner;

import java.util.List;

/**
 * <p>
 * 首页banner表 服务类
 * </p>
 *
 * @author cloud
 * @since 2022-03-10
 */
public interface BannerService extends IService<Banner> {

    /**
     * 添加banner
     */
    public void addBanner(Banner banner);

    public List<Banner> getAll();

    public Banner fingById(String id);

    public void deleteById(String id);

    /**
     * 分页查询
     */
    public PageInfo<Banner> pageinfo(int pageNum);
}
